package com.laiketui.order.mapstruct;

import com.laiketui.order.api.dto.ExamineOrderDetailDTO;
import com.laiketui.order.api.dto.StoreOrderDTO;
import com.laiketui.order.entity.ExamineOrderDetailEntity;
import com.laiketui.order.entity.StoreOrderEntity;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

@Mapper
public interface ExamineOrderDetailMapstructMapper {
    ExamineOrderDetailMapstructMapper INSTANCE = Mappers.getMapper(ExamineOrderDetailMapstructMapper.class);

    @Mapping( target = "payPrice",expression="java(com.laiketui.order.utils.PriceUtil.longToBigDecimalPrice(entity.getPayPrice()))")
    ExamineOrderDetailDTO toDTO(ExamineOrderDetailEntity entity);
}
